<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>{:C('title')} </title>
	<link rel="stylesheet" href="__PUBLIC__/Home/css/base.css">
	<link rel="stylesheet" href="__PUBLIC__/Home/css/index_edit.css">
	<script src="__PUBLIC__/Home/js/jquery-1.8.3.min.js"></script>
		<script src="__PUBLIC__/Home/js/index.js"></script>
	
</head>
<body>
	<block name="floor">
		<!--侧导航-->
		<php>$number = count($product);</php>
		<ul class="side_nev" id="side_nev">
			<for start="0" name="floor" end="$number">
				<li>
				<a  data-title="{$floor+1}" class="etitle1" href="javascript:;">{$floor+1}F</a>
				<a href="javascript:;" number = '{$floor}' data-title="{$floor+1}"  onclick="gotofloor(this)" class="etitle"></a>
			</li>
			</for>
		</ul>
	</block>
	<!-- 头部广告 -->
	<block name="ad_top">
		<foreach name="result_ad28" item="vo_top28">
			<div class="advertisement">
		    	<a onclick="javascript:location.href='{$vo_top28.ad_link}'" target=_blank><img src="{$vo_top28.pic_url}" width="100%" height="100"> </a>
		    	<input type="button" class="advertisement_delete" id="advertisement_delete"></input>
		    </div>
		</foreach>	
	</block>
	<!-- 导航 -->
	<header>
		<div class="header_top">
			<!-- 登陆 -->
			<div class="header_top_center clearfix">
				
				<div class="header_top_left fl">
					<if condition="empty($_SESSION['user_id'])">
						<a href="{:U('public/login')}">亲，请登陆</a>
						<a href="{:U('public/reg')}">会员注册</a>
					<else/>
					 	 <a href="{:U('User/user_info')}">欢迎您：{:session('user_name')}</a>
					 	 <a href="{:U('User/logout')}">退出</a>
					</if>
				</div>
				<div class="header_top_right fr">
					<a href="{:U('User/my_order_lst')}" class="bder_r">我的订单</a>
					<a href="javascript:;" class="bder_r">
						<img src="__PUBLIC__/Home/img/index/nav_img2.png" alt="">
						手机亿速
					</a>
					<a href="javascript:;" class="bder_r">客服服务</a>
					<a href="javascript:;">
						<img src="__PUBLIC__/Home/img/index/nav_img1.png" alt="">
						网站导航
					</a>
				</div>
			</div>
			<!-- 导航 -->
			<nav class="nav">
				<!-- logo -->
				<div class="nav_center clearfix">
					<hgroup class="logo fl">
						<a href="{:U('Index/index')}">
							<img src="__PUBLIC__/Home/img/index/logo.png" alt="">
							<h2>亿速网络</h2>
						</a>
					</hgroup>
					<!-- 搜索框 -->
						<div class="fl search">
							<form action="{:U('Index/search')}" method="post" onsubmit="return isSuccess();">
								<div class="search_input clearfix">
										<input type="text" name="title" class="fl">
										<input type="button" onclick="javascript:$(this).parents('form').submit();" value="搜索" class="fl">
								</div>
							</form>
							<div class="search_link">
								<foreach name='key_words' key='key' item='value'>
									<a href="{:U('Search/index', array('id' => $value['id']))}">{$value.hot_words}</a>
								</foreach>
							</div>
						</div>
					<!-- 购物车 -->
					<div class="fl cart" id="cart">
						<div class="catr_block">
							<img src="__PUBLIC__/Home/img/index/cart.png" alt="">
							<a href="{:U('Cart/goods_cart')}">我的购物车</a>
							<span class="slide">{$cart_count}</span>
						</div>
						<div class="catr_none">
						
							<span class='<if condition="!empty($cart_new_goods)">catr_centent</if>'>购物车中还没有商品，赶快去选购吧！</span>
						
							<if condition="!empty($cart_new_goods)">
								<dl>
									<dt>最新加入商品</dt>
									<dd class="clearfix">
										<div class="catr_centent_img fl"><a href="{:U('Cart/goods_cart')}"><img src="{$cart_new_goods.pic_url}" alt="{$cart_new_goods.title}" width="52" height="52"></a></div>
										<a href="javascript:;" class="catr_centent_con fl">{$cart_new_goods.title} {$cart_new_goods.description}</a>
										<div class="catr_centent_data fr">
											<div class="catr_centent_con">
												<span>￥{$cart_new_goods.price_new} x{$cart_new_goods.goods_num}</span>
											</div>
										</div>
									</dd>
								</dl>
							</if>
						</div>
					</div>
				</div>
			</nav>
		</div>
	</header>
	<!-- 内容开始 -->
	<section>
		<!-- banner—导航 -->
		<div class="banner_top">
			<div class="banner_top_center">
				<!-- banner导航 -->
				<ul class="clearfix">
					<li class="fl nav_li" id="nav_li1">
						<a href="javascript:;" class="nav_a">全部商品分类</a>
						<!-- 二级菜单 -->
						<ul class="menu" id="menu">
							<foreach name="result_class" key="k" item="vo_class">
								<li class="mainCate list-item0 ">
									<a  href="{:U('Goods/goods')}?class_id={$vo_class.id}">{$vo_class.class_name}</a>  
									<ul class="option">
									  <h4 class='me_h4'>{$vo_class.class_name}</h4>
									  <li>
										  <span>
											  <foreach name="vo_class['class_sub']" item="class_sub">
											  	<a href="{:U('Goods/goods')}?class_id={$class_sub.id}">{$class_sub.class_name}</a>
											  </foreach>
										  </span>
									  </li>
									</ul>
								</li>
							</foreach>
						</ul>
					</li>
					<if condition='!empty($nav_data)'>
	                    <foreach name='nav_data' key='key' item='value'>
	                    	<li class="fl nav_li"><a class="nav_a" href="{:U('Goods/goods')}?class_id={$value.id}">{$value['class_name']}</a></li>
	                    </foreach>
	                    <li class="fl nav_li"><a class="nav_a" href="{:U('Goods/xiangou')}">限购商品</a></li>
	                </if>
				</ul>
			</div>
		</div>